//获取本机ip(需要下载os插件)
const os = require('os')
console.log(os)
const getIP = () => {
    const interfaces = os.networkInterfaces();
    for (let devName in interfaces) {
        const iface = interfaces[devName];
        for (let i = 0; i < iface.length; i++) {
            const alias = iface[i];
            if (alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal && alias.netmask === '255.255.255.0') {
                return alias.address;
            }
        }
    }
}
let timerr = getIP()
export default timerr